<script lang="ts" setup>
import FExamine from './FExamine.vue'
import FSysMsg from './FSysMsg.vue'
import FGoodsList from './FGoodsList.vue'
defineProps({
    active: {
        type: String,
        default: 'FExamine'
    }
})

const emit = defineEmits(['change'])

const handleClose = (val: boolean, name: string) => {
    emit('change', { val, name })
}
</script>
<template>
  <div class="f-wrap">
    <FExamine v-show="active === 'FExamine'" @close="handleClose($event, 'FExamine')"></FExamine>
    <FSysMsg v-show="active === 'FSysMsg'" @close="handleClose($event, 'FSysMsg')"></FSysMsg>
    <FGoodsList v-show="active === 'FGoodsList'" @close="handleClose($event, 'FGoodsList')"></FGoodsList>
  </div>
</template>
